# coding:utf-8
# writingtime: 2022-7-26


class entropy1:
    @staticmethod
    def getResult(a, q):
        '''
        function: 计算区间值广义正交的熵
        :param a: 区间值广义正交模糊数
        :param q: 参数q
        :return: 熵的值
        '''
        positive_pai = (1 - a[0][0] ** q - a[1][0] ** q)
        negative_pai = (1 - a[0][1] ** q - a[1][1] ** q)
        temp1 = 1 - abs(a[0][0] ** q - a[1][0] ** q)
        temp2 = 1 - abs(a[0][1] ** q - a[1][1] ** q)
